<?php
namespace App\Http\Controllers\Validator;
use Validator;

/**
 * Class AchievementVali
 * @package App\Http\Controllers\Validator
 * 业绩结算验证
 */
class AchievementVali{

    public static function validate($params)
    {
        $return = true;
        $validator = Validator::make($params, [
            'status'   => 'required',
            'room_id'   => 'required'
        ]);
        if ($validator->fails()) {
            $return = false;
        }
        return $return;
    }
}